home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Resources / Security / McAfee SiteAdvisor 26.6 / safe.xpi / chrome / safe.jar / content / settings.xul < prev    next >
Extensible Markup Language  |  2007-01-04  |  2KB  |  38 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
  3. <!DOCTYPE overlay SYSTEM "chrome://safe/locale/safe.dtd">
  4. <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml"
  5.     align="center" buttons="accept,cancel" buttonorient="horizontal" buttonalign="center"
  6.     id="safe-settings"  onload="onLoad();"
  7.     ondialogaccept="SiteAdvisorFunPack['writeSettings']();"
  8.     windowtype="safe:settings">
  9.  
  10.     <script type="application/x-javascript" src="framework.js" />
  11.  
  12.     <groupbox align="start">
  13.         <checkbox align="start" id="button" label="&safe.settings.browseButton.label;" checked="true"/>
  14.         <checkbox align="start" id="on" label="&safe.settings.searchIcons.label;" checked="true"/>
  15.         <checkbox align="start" id="highlight" label="&safe.settings.searchHighlight.label;" checked="false"/>
  16.         <checkbox align="start" id="ssl" label="&safe.settings.ssl.label;" checked="false"/>
  17.     </groupbox>
  18.  
  19.     <script>
  20.         function onLoad() {
  21.             var premium = window.arguments[0];
  22.  
  23.             if (premium)
  24.                 document.title = "&safe.settings.title_plus;";
  25.             else
  26.                 document.title = "&safe.settings.title;";
  27.  
  28.             document.getElementById('button').checked = window.arguments[1];
  29.             document.getElementById('on').checked = window.arguments[2];
  30.             document.getElementById('highlight').checked = window.arguments[3];
  31.             document.getElementById('ssl').checked = window.arguments[4];
  32.  
  33.             document.getElementById('button').collapsed = premium;
  34.  
  35.             centerWindowOnScreen();
  36.         }
  37.     </script>
  38. </dialog>